<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

//use Yii;
use yii\helpers\Html;
//use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use frontend\controllers\SiteController;
use common\models\setting\Setting;
use common\models\Ad\AdPosition;
use common\models\Ad\Ad;
        //版权信息
        $copyright = '';
        try
        {
            $copyright = Setting::findOne(['code'=>'copyright'])->value;
        }
        catch(ErrorException $e)
        {

        }
        //网站名称
        $name = '';
        try
        {
            $name = Setting::findOne(['code'=>'siteName'])->value;
        }
        catch(ErrorException $e)
        {

        }
        //邮箱
        $email = '';
        try
        {
            $email = Setting::findOne(['code'=>'email'])->value;
        }
        catch(ErrorException $e)
        {

        }
        //备案
        $beian = '';
        try
        {
            $beian = Setting::findOne(['code'=>'beian'])->value;
        }
        catch(ErrorException $e)
        {

        }
    //微信logo
    $wbimg = '';
    try { $wbimg = Setting::findOne(['code'=>'wb_chat'])->value;}
    catch(ErrorException $e){ }
$zcgg = Ad::find()->where(['position_id'=>17])->one();//公告广告
$ycgg = Ad::find()->where(['position_id'=>18])->one();//公告广告

?>
<!--footer--><!-- 
<div class="footer w1113">
    <div class="w1113 bgd-ff footerwidth">
        <p>
            本站网络实名：<?=$name;?> &nbsp; &nbsp;    电子邮件：<?=$email;?>
        </p>
        <p>
            版权所有 <?=$copyright;?> 　<?=$beian;?>
        </p>
    </div>
</div> -->
<div class="footer w1113">
        <div class="w1113 bgd-ff footerwidth">
            <p>
                Copyright by <?=$copyright;?>
            </p>
            <p>
                Email: <?=$email;?>
            </p>
        </div>
</div>
<!--footer end-->
<!--广告位-->
<!-- 
<div class="fixediv leftadv">

        <a href="<?= $zcgg['ad_link']; ?>"><img src="/upload/<?= json_decode($zcgg['ad_code'], true)['newname'];?>" width="172" height="507"/></a>

    <a class="fixclose" href="javascript:void(0);"><img src="images/ggcol.png" alt="" width="24" height="24"></a>
</div>


<div class="fixediv rightadv">

    <a href="<?= $ycgg['ad_link']; ?>"><img src="/upload/<?= json_decode($ycgg['ad_code'], true)['newname'];?>" width="172" height="507"/></a>

    <a class="fixclose" href="javascript:void(0);"><img src="images/ggcol.png" alt="" width="24" height="24"></a>
</div> -->
<!--广告位-->
<!--微信-->
<!-- <div class="fdwx">
    <img src="/upload/<?= $wbimg;?>" alt="" width="172" height="176">
</div> -->
<!--微信-->


</div>
<!--warrper end-->
